A problem has been encountered in the project, for security reasons, you need to package the file in binary data as a compressed file, and the compressed file has a password.Go to Google to find some API, download to see the next, and figured out the following methodsFirst put the API:Https://mvnrepository.com/artifact/de.idyl/winzipaes - Dependency>
When you process some files, if you think it is important, you will set a password for the file, just like setting a password for your phone. If you need to view the password, you need to enter the password, in fact, the principles are similar. How can we encrypt a PDF file? Next let's take a look at the small series of operation methods.
1: In the first step, w
On the internet to see a lot of examples, the result is very disappointing, so decided to write an example, to provide you with reference to study; no more nonsense. See examples directly:
Package com.em.test.client;
Import Java.io.BufferedOutputStream;
Import Java.io.File;
Import java.io.FileNotFoundException;
Import Java.io.FileOutputStream;
Import java.io.IOException;
Import Java.io.InputStream;
Import java.util.Enumeration;
Import Java.util.zip.ZipEntry;
Import Java.util.zip.ZipFile;
/
The basic usage of the Linux zip command is:Zip [parameters] [file name after packaging] [packaged directory path]Linux zip command parameter list:-a convert the file to ASCII mode-F attempt to repair corrupted compressed file-H Display Help interface-M after compressing the
This article describes how to compress and decompress the zip file in Python and try to crack the password of the zip file. It provides a simple example of using the zipfile module, for more information about how to compress and decompress zip files, see python zipfile.
For
/* Creates a compressed zip file */ function create_zip ($files = Array (), $destination = ', $overwrite = False) {//if the zip file already exists and overwrite is false, return false if (file_exists ($destination) ! $overwrite) {return false;} //vars $valid _files = Array (); //if files were passed in ... if (Is_a
Through the introduction of a bad article, you know, Ziparchive class represents a Zip document instance, in addition to using the method listed in the previous article to read and write the zip file, you can also directly through the Ziparchive class, dynamically generate a zip file.File stream operations believe that
Java uses ant to implement ZIP files to compress and extract zip files.
A single file is compressed into a zip file, and multiple files are compressed into a zip file.
You can compress
The compressed zip file cannot be decompressed by 7z, and the format is windows to create it, and it does not press the package in this way under Linux. Here's how to work with this file under Linux:Method One:Cat xx.z01 xx.zip > full. zipunzipfull. zipMethod Two:Zip Xx.zip--out full. zipunzipfull. zipMethod Three:Zip-s 0 Xx.zip--out full.zipUnzip Full.zipReferen
The following small series to show you a few PHP operation zip file instance, we can read the ZIP package in the specified file and delete the specified file in the ZIP package, the following to give a big this introduction.
Extra
/*
PHP extracts files from zip compressed files
*/
$zip = new Ziparchive;
if ($zip->open (' jquery five screen up and down scrolling focus graph code. zip ') = = = TRUE) {//Chinese file name to use ANSI-encoded files format
$
How to Use DM-Crypt to encrypt a Linux File System?
Readers often ask us how to implement a file system encryption method for Linux. Before discussing this topic in depth, I would like to clarify two points:
First, it is difficult to find enough information on the Internet. So I will introduce you to a few really great resources that are hard to find (actually s
There are many methods to encrypt files, but there are some shortcomings in the traditional file-based encryption methods. For example, the headache of cryptographic technology, complex full-text encryption/decryption algorithms, and the generation of spam files. Here I will introduce you to a new idea of file encryption. Right-click a
Baidu cloud file How to encrypt
1, we click on the computer "computer Baidu Cloud Interface" effect as shown below
2, and then we find the file as shown below the effect is as follows
3, then we select the file right click on the pop-up menu, click to Share
4, out of the selection of items,
:
Method Two, other command compression encryption
In addition to direct operations, we can also use the command line to encrypt the file's compression. First of all, it is natural to go to the WinRAR installation directory, and then follow the input specified command to complete the file compression encryption, because the command line is now not our usual operation, so the small part does not speak so
Like Windows BitLocker, the Encrypting File System (EFS, Encrypting File System) is a set of public key-based encryption mechanisms built into windows that can encrypt files and folders on NTFS partitions, enabling real-time, Transparently encrypts the data on the disk.Cryptographic operationsEncryption method The user is transparent, after the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.